package com.banggood.upms.service;

import com.banggood.upms.bean.vo.search.BaseSearchCriteria;

import java.util.List;

/**
 * @author XuChuangFeng
 */
public interface BaseService<T> {

    int deleteByPrimaryKey(String id) throws Exception;

    int insert(T record) throws Exception;

    T selectByPrimaryKey(String id);

    List<T> selectAll();

    int updateByPrimaryKey(T record);

    List<T> selectByCriteria(BaseSearchCriteria criteria);
}
